import request from '@/utils/request'

// 查询验货明细列表
export function listCheckProductdetail(query) {
  return request({
    url: '/supplier/checkProductdetail/list',
    method: 'get',
    params: query
  })
}

// 查询验货明细详细
export function getCheckProductdetail(id) {
  return request({
    url: '/supplier/checkProductdetail/' + id,
    method: 'get'
  })
}

// 新增验货明细
export function addCheckProductdetail(data) {
  return request({
    url: '/supplier/checkProductdetail',
    method: 'post',
    data: data
  })
}

// 修改验货明细
export function updateCheckProductdetail(data) {
  return request({
    url: '/supplier/checkProductdetail',
    method: 'put',
    data: data
  })
}

// 删除验货明细
export function delCheckProductdetail(id) {
  return request({
    url: '/supplier/checkProductdetail/' + id,
    method: 'delete'
  })
}

// 导出验货明细
export function exportCheckProductdetail(query) {
  return request({
    url: '/supplier/checkProductdetail/export',
    method: 'get',
    params: query
  })
}